package com.example.entity.vo.pc;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.util.List;

@ApiModel(value = "资源组Vo")
@Data
public class ResourceGroupVo {

    @ApiModelProperty(value = "资源组ID")
    @TableId(value = "resourceGroupId", type = IdType.AUTO)
    private Integer resourceGroupId;

    /**
     * 资源组名称
     */
    @ApiModelProperty(value = "资源组名称")
    @TableField("resourceGroupName")
    private String resourceGroupName;

    /**
     * 资源组编号
     */
    @ApiModelProperty(value = "资源组编号")
    @TableField("resourceGroupNO")
    private String resourceGroupNO;

    @ApiModelProperty(value = "父资源组编号")
    @TableField("resourceGroupParentId")
    private Integer resourceGroupParentId;

    @ApiModelProperty(value = "类型(M统驭 F末级 C分类)")
    @TableField("type")
    private String type;

    @ApiModelProperty(value = "节点下面有多少末级")
    @TableField("fNums")
    private int fNums;

    @ApiModelProperty(value = "子资源组列表")
    @TableField(exist = false)
    private List<ResourceGroupVo> sonGroup;
}
